package com.maweis;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.AttributeSet;
import android.view.View;

public class SilentView extends View {
	private Paint mPaint = new Paint();

	
	
	public SilentView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		// TODO Auto-generated constructor stub

	}

	public SilentView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub

	}

	public SilentView(Context context) {
		super(context);

		// Construct a wedge-shaped path

	}

	

	@Override
	protected void onDraw(Canvas canvas) {
		Paint paint = mPaint;

		canvas.drawColor(Color.WHITE);

		paint.setAntiAlias(true);
		paint.setColor(Color.BLACK);
		paint.setStyle(Paint.Style.FILL);
		paint.setTextSize(20);
		
		canvas.drawText("Gphone will be in silent mode", 25, 100, mPaint);
		canvas.drawText(" when you reverse your G1!", 20, 130, mPaint);
		
		canvas.drawLine(20, 200, 300, 200, paint);
		
		canvas.drawText("http://maweis.com", 20, 230, mPaint);
		canvas.drawText("mawei.81@gmail.com", 20, 250, mPaint);
		canvas.drawText("I will put the auto silent service", 20, 275, mPaint);
		canvas.drawText(" in the backend, please wait me.", 20, 300, mPaint);
		

	}

	
}
